import { imgBaseUrl, version } from '@/utils/config.js'
import { setStore, getStore, clearStore } from '@/utils/store'
const common = {
	state: {
		imgBaseUrl: imgBaseUrl,		//图片前缀url
		version: version,		//应用版本号
		route: getStore('route'),	//跳转到登录前的页面信息
	},
	
	mutations: {
		SET_ROUTE (state, route) {
			state.route = route
			setStore({
				name: 'route', 
				content: route
			})
		}
	},
	
	actions: {
		
	}
}

export default common